package com.aaa.mrcai.controller;

import com.aaa.mrcai.query.AdminOrderQuery;
import com.aaa.mrcai.result.AjaxResult;
import com.aaa.mrcai.service.AdminOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ Author: Lining
 * @ Date: 2021/12/14 15:20
 */
@RestController
@RequestMapping("adminOrder")
public class AdminOrderController {
    @Autowired
    private AdminOrderService adminOrderService;

    @RequestMapping("list")
    public AjaxResult list(AdminOrderQuery adminOrderQuery){
        AjaxResult list = adminOrderService.list(adminOrderQuery);
        System.out.println("controller:"+list);
        return list;
    }
    @RequestMapping("/getOneOrder/{soid}")
    public AjaxResult getOneOrder(@PathVariable("soid") String  soid){
        return adminOrderService.getOneOrder(soid);
    }
}
